//
//  UIView+Extension.swift
//  0829-Weibo
//
//  Created by 毕仲阳 on 16/8/29.
//  Copyright © 2016年 mycompany. All rights reserved.
//

import UIKit
extension UIView
{
    @IBInspectable var cornerRadius:CGFloat{
        set
        {
            layer.cornerRadius = newValue
            layer.masksToBounds = newValue > 0
        }
        get
        {
            return layer.cornerRadius
        }
    }
}
